import { Component } from '@/decorators';
import { Vue } from 'vue-class-component';
import { NavBar as VanNavBar } from 'vant';

@Component({
  name: 'NavBar',
  render() {
    return (
      <VanNavBar
        title={this.title}
        left-text="返回"
        left-arrow
        onClickLeft={() => this.$router.back()}
        class="nav-bar"
        fixed
      />
    );
  }
})
export default class NavBar extends Vue {
  private title!: string;
} 